import React from 'react';

import BaseAction from '../common/BaseAction';
import Constants from '../../common/Constants';
import ResponseConstants from '../../common/ResponseConstants';

export default class UserUpdatePhoneAction extends BaseAction {
  constructor() {
    super();

    this.moduleType = Constants.MODULE_TYPE.USER;
    this.name = "UserUpdatePhoneAction";
  }
  finish(isSucceed,data,response) {
  	if (response.ok) {
		this.caller.setState({
      		updateSucess:true,
    	})
  	}else{
  		this.caller.setState({
      		viewStatus: isSucceed.status,
      		FaileText: isSucceed.detail||'修改失败',
      		updateFaile:true,
    	})
  	}
  }
}
